package com.gjy.leetcode.eoa.chapter1;

import com.gjy.util.ObjectUtil;
import org.junit.jupiter.api.Test;

import java.util.BitSet;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-03-16 09:18:03
 */
public class Test1 {

    @Test
    public void test1() {
        CompressGene acgt = new CompressGene();
        BitSet b = acgt.compress("ACGTAAAAACCCGGGTTT");
        System.out.println("acgt.compress(\"ACGT\") = " + b);
        System.out.println("ObjectUtil.bytes(b) = " + ObjectUtil.bytes(b));


        String decompress = acgt.decompress();
        System.out.println("acgt.decompress() = " + decompress);
        System.out.println("ObjectUtil.bytes(decompress) = " + ObjectUtil.bytes(decompress));

        System.out.println("ObjectUtil.bytes('A') = " + ObjectUtil.bytes('A'));
    }
}
